<style type="text/css">
.body {
}

#boxcenter{
	height: auto;
	width: 760px;
	background-color: #444041;
}
body,td,th {
	color: #FFF;
}
</style>
<table width="100%" border="0" cellpadding="1" cellspacing="1">
  
  <tr class="txt_td">
    <!--th width="15%" height="25"  background="images/img/had.png">รหัสชั้นเรียน</th-->
    <th width="20%" height="25"  background="images/img/had.png">วิชาที่เปิดสอน</th>
    <th width="20%" height="25"  background="images/img/had.png">อาจารย์ผู้สอน</th>    
    <th width="10%" height="25"  background="images/img/had.png">จัดการข้อมูล</th>
  </tr>
<?php
   $sql_m = "select * from tb_sec NATURAL JOIN tb_subject NATURAL JOIN tb_teacher ORDER BY subject_id";
   $result_m = $dbfunc->query($sql_m);
   
   $j=1;
      while( $fetch_m= mysql_fetch_object($result_m)){
?>
  <tr>
<!--    <td align="center" bgcolor="#999999"><? //echo $fetch_m->sec_id; ?></td>-->
    <td align="center" bgcolor="#999999"><a title="<?php echo $fetch_m->sec_des; ?>"><? echo $fetch_m->subject_name; ?></a></td>
    <td align="center" bgcolor="#999999"><? echo $fetch_m->teacher_name; ?></td>
    <td align="center" bgcolor="#999999">
    <a href="?module=admin&page=edit_sec&m=<?=$fetch_m->sec_id;?>">
    <img src="images/edit.png" width="15" height="15" border="0" /></a>
    <a href="?module=admin&page=del_sec&m=<?=$fetch_m->sec_id;?>">
     <img src="images/delete.png" width="15" height="15" border="0" /></a>
     
     </td>
  </tr>
<? }?> 
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="1">
  <tr>
    <th width="85%" scope="col">&nbsp;</th>
    <th width="15%" bgcolor="#999999" ><a href="?module=admin&page=frm_sec" class="body">เพิ่มข้อมูล</a></span>
    </a></p></th>
  </tr>
</table>